<template>
  <h2>我是孙组件Demo2</h2>
  <h3>孙组件Demo2上的age:{{ age }}</h3>
  <h3>孙组件Demo2上的job:{{ job }}</h3>
  <button @click="emitSome">孙组件Demo2触发绑定在子组件的some方法</button>
</template>
<script>
export default {
  nanme: 'Demo2',
  props: ['age', 'job'],
  emits: ['some', 'mouseup'],
  setup(props, content) {
    console.log('Demo2props:', props)
    console.log('Demo2content:', content)
    function emitSome() {
      content.emit('some')
      content.emit('mouseup')
    }
    return {
      emitSome,
    }
  },
}
</script>
